<?php
// requirement : If sometime calculation goes wrong , but we don't require to show
// negative sign

$num = -23.55;
echo abs($num);
echo "\n";
echo round($num);
echo "\n";
echo round($num,1);
echo "\n";
echo ceil($num);
echo "\n";
echo floor($num);
echo "\n";

echo round(9, 1, PHP_ROUND_HALF_UP);echo "\n";   // 10
echo round(9, 0, PHP_ROUND_HALF_DOWN); echo "\n";// 9
echo round(8, 0, PHP_ROUND_HALF_EVEN); echo "\n";// 10
echo round(9, 0, PHP_ROUND_HALF_ODD);  echo "\n";// 9
